package com.cloud.model.entity.assetsdetail;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.cloud.model.entity.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.io.Serializable;

/**
 * <b><code>AssetsDetail</code></b>
 * <p/>
 * AssetsDetail的具体实现
 * <p/>
 * <b>Creation Time:</b> 2019-10-15 17:22:19.
 *
 * @author ${model.author}
 * @version 1.0.0
 * @since cloud-spring-boot-be 1.0.0
 */
@Entity
@Table(name="t_assets_detail")
@DynamicInsert
@DynamicUpdate
public class AssetsDetail extends BaseEntity implements Serializable {

    /**
    * The constant serialVersionUID.
    */
    private static final long serialVersionUID = -1L;

    @Column(name = "month_total_money")
    @ApiModelProperty(value = "月总金额")
    private Long monthTotalMoney;

    @Column(name = "month_total_expenditure")
    @ApiModelProperty(value = "月总支出")
    private Long monthTotalExpenditure;

    @Column(name = "month_total_income")
    @ApiModelProperty(value = "月总收入")
    private Long monthTotalIncome;

    @Column(name = "user_id")
    @ApiModelProperty(value = "用户id")
    private Long userId;

    @Column(name = "now_month")
    @ApiModelProperty(value = "当前月份")
    private String  nowMonth;

    @Column(name = "now_first_month")
    @ApiModelProperty(value = "当前月份初始时间时间戳")
    private Long nowFirstMonth;

    @Column(name = "assets_id")
    @ApiModelProperty(value = "assets_id")
    private Long assetsId;

    public Long getMonthTotalMoney() {
        return monthTotalMoney;
    }

    public void setMonthTotalMoney(Long monthTotalMoney) {
        this.monthTotalMoney = monthTotalMoney;
    }

    public Long getMonthTotalExpenditure() {
        return monthTotalExpenditure;
    }

    public void setMonthTotalExpenditure(Long monthTotalExpenditure) {
        this.monthTotalExpenditure = monthTotalExpenditure;
    }

    public Long getMonthTotalIncome() {
        return monthTotalIncome;
    }

    public void setMonthTotalIncome(Long monthTotalIncome) {
        this.monthTotalIncome = monthTotalIncome;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getNowMonth() {
        return nowMonth;
    }

    public void setNowMonth(String nowMonth) {
        this.nowMonth = nowMonth;
    }

    public Long getNowFirstMonth() {
        return nowFirstMonth;
    }

    public void setNowFirstMonth(Long nowFirstMonth) {
        this.nowFirstMonth = nowFirstMonth;
    }

    public Long getAssetsId() {
        return assetsId;
    }

    public void setAssetsId(Long assetsId) {
        this.assetsId = assetsId;
    }

    public AssetsDetail(){
        super();
    }

}
